package org.zappee.dannyt.cairngorm.command
{
	import com.adobe.cairngorm.commands.ICommand;
	import com.adobe.cairngorm.control.CairngormEvent;
	
	import org.zappee.dannyt.cairngorm.business.Bug;
	import org.zappee.dannyt.cairngorm.event.OpenCloseBugEvent;
	
	public class OpenCloseBugCommand implements ICommand
	{
		public function OpenCloseBugCommand()
		{
		}
		
		public function execute(event:CairngormEvent):void
		{
			var bug:Bug = OpenCloseBugEvent(event).bug;
			bug.isOpen = !bug.isOpen;
		}

	}
}